package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"staff/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.StaffController{}, "POST:Login")
	beego.Router("/staen/list", &controllers.StaffController{}, "GET:List")
	beego.Router("/user/add", &controllers.StaffController{}, "POST:Add")
	beego.Router("/useradd", &controllers.StaffController{}, "POST:UserAdd")
	beego.Router("/limit", &controllers.StaffController{}, "GET:Limit")
	beego.Router("/del", &controllers.StaffController{}, "GET:Del")
	beego.Router("/upload", &controllers.StaffController{}, "POST:Upload")
	beego.Router("/userlist", &controllers.StaffController{}, "GET:UserList")

}
